<%@page import="com.mmy.domain.plane.TPlanePlan"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<script type="text/javascript" src="js/jsp/back/planebase/planePlanIndex.js"></script>

<title>航班时刻信息</title>
<script>
	$(function () {

laydate.render({
  elem: '#planStartDate',
  type: 'date' ,
  theme: '#1eab3c',
  value: ''
	});
laydate.render({
  elem: '#planEndDate',
  type: 'date' ,
  theme: '#1eab3c',
  value: ''
	});
	laydate.render({
  elem: '#planStartTime',
  type: 'time' ,
  theme: '#1eab3c',
  value: ''
	});
});
	
	
	
	</script>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>航班时刻信息</h2>			
		</div>
	</header>
	<section class="container">
	<nav class="breadcrumb" >
						
					<a href="backplaneorgindex" >航空公司</a> | 
				<a href="backplaneairportindex" >机场信息</a> | 
				 <a href="backplanebaseindex" >航班信息</a>
						<hr class="breadcrumb-hr" color=#F9F6E5 SIZE=3></hr>
					</nav>

		<div class="information">
			<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>新建航班时刻信息
						</h4>
				
						
				<div  class="input-container">
				<form action="backsavecreateplaneplan" method="post" class="info-form" name="planePlanForm" onSubmit="return planPlaneSubmit(this);" >
				<table class="info-table" >
				<tr>
					<th><label for="planStandard">标准</label> <span class="mustWrite">*</span></th>
					<td>
						<input type="text" id="planStandard" name="Standard" maxlength="64" required/>
					</td>
					<th><label for="planeName">航班名称</label></th>
					<td>
					<input type="hidden" name="PlaneID" id="planeID" maxlength="64" readonly="readonly" value="${dbPlaneBase.getPlaneID()}"/>
					<input type="text" name="PlaneName" id="planeName" maxlength="64" readonly="readonly" value="${dbPlaneBase.getPlaneName()}"/>
						
					</td>
				</tr>
				<tr>
				<th><label for="planZoneID">出发地</label><span class="mustWrite">*</span></th>
				<c:choose>
				<c:when test="${strFlag=='0' }">
				
				<td>
				
					<select class="input-select-vlign" id="planZoneID" name="Province" emptyOption="false"  onchange="changeSelect(this,'getLevel4','level3','City')" required>
					<option value="">---请选择---</option>
					<c:forEach var="lstZoneProvince" items="${lstZoneProvince}">
						<option value="${lstZoneProvince.getZoneID()}">${lstZoneProvince.getZoneName()}</option>
						</c:forEach>
						</select>
						<select class="input-select-vlign City" name="ZoneOutID" id="planZoneOutID" emptyOption="false" onchange="appearAirPort(this.value)" required>
						<option >---请选择---</option>
						</select> 	
						</td>
				</c:when>
				<c:otherwise>
				<td>
				<select class="input-select-vlign " id="planZoneID" name="Continent" emptyOption="false"  onchange="changeSelect(this,'getLevel2','level1','Country')"  required>
					<option value="">---请选择---</option>
					<c:forEach var="lstZoneContinent" items="${lstZoneContinent}">
						<option value="${lstZoneContinent.getZoneID()}">${lstZoneContinent.getZoneName()}</option>
						</c:forEach>
						</select>
						<select class="input-select-vlign  Country" name="ZoneOutID" id="planZoneOutID" emptyOption="false"  required onchange="appearAirPort(this.value)">
						<option value="">---请选择---</option>
						</select> 	
					
						</td>
				</c:otherwise>
				</c:choose>
				<th><label for="planAirportOut">出发机场</label><span class="mustWrite">*</span></th>
				<td>
				<select class="input-select-vlign" name="AirportOutID"  id="planAirportOut"  required >
						<option value="">---请选择---</option>
						
						</select> </td>
				</tr>
				<tr>
				<th><label for="planInZoneID">到达地</label><span class="mustWrite">*</span></th>
				<c:choose>
				<c:when test="${strFlag=='0' }">
				<td>
					<select class="input-select-vlign" id="planInZoneID" name="Province" emptyOption="false"  onchange="changeSelect(this,'getLevel4','level3','City')" required>
					<option value="">---请选择---</option>
					<c:forEach var="lstZoneProvince" items="${lstZoneProvince}">
						<option value="${lstZoneProvince.getZoneID()}">${lstZoneProvince.getZoneName()}</option>
						</c:forEach>
						</select>
						<select class="input-select-vlign City" name="ZoneInID" id="planZoneInID" emptyOption="false" onchange="appearInAirPort(this.value)" required>
						<option >---请选择---</option>
						</select> 	
						</td>
				</c:when>
				<c:otherwise>
				<td>
				<select class="input-select-vlign " id="planZoneInID" name="Continent" emptyOption="false"  onchange="changeSelect(this,'getLevel2','level1','Country')"  required>
					<option value="">---请选择---</option>
					<c:forEach var="lstZoneContinent" items="${lstZoneContinent}">
						<option value="${lstZoneContinent.getZoneID()}">${lstZoneContinent.getZoneName()}</option>
						</c:forEach>
						</select>
						<select class="input-select-vlign  Country" name="ZoneInID" id="planZoneInID" emptyOption="false"  required onchange="appearInAirPort(this.value)">
						<option value="">---请选择---</option>
						</select> 	
					
						</td>
				</c:otherwise>
				</c:choose>
				<th><label for="planAirportIn">达到机场</label><span class="mustWrite">*</span></th>
				<td>
				<select class="input-select-vlign" name="AirportInID"  id="planAirportIn"  required >
						<option value="">---请选择---</option>
						
						</select> </td>
				</tr>
				<tr>
					<th><label for="planStartDate">选择日期范围</label><span class="mustWrite">*</span></th>
					<td>
						<input type="text" name="planStartDate" id="planStartDate"  required/>
						<input type="text" name="planEndDate" id="planEndDate"  required/>
					</td>
					<th><label for="weekNum">范围星期</label><span class="mustWrite">*</span></th>
					<td>
						<input type="text" id="planWeekNum"   name="planWeekNum" placeholder="例：0，1，5；1-6为周一到周六，周日为0"/>	
					</td>
				</tr>
				<tr>
					
					<th><label for="planStartTime">出发时间</label><span class="mustWrite">*</span></th>
					<td>
						<input type="text" name="planStartTime" id="planStartTime"  required/>
					</td>
					<th><label for="planLongTime">飞行时长</label><span class="mustWrite">*</span></th>
					<td>
						
						<input type="number" step="0.01"  name="Long" id="planLongTime"  required  placeholder="例：3.56为3小时56分钟"/>
					</td>
				</tr>
				<tr>
					<th><label for="planFloor">底价</label><span class="mustWrite">*</span></th>
					<td>
						<input type="number" step="0.01"  name="Floor" id="planFloor" maxlength="18" required/>
					</td>
					<th><label for="planPeer">同业价</label><span class="mustWrite">*</span></th>
					<td>
						<input type="number"  step="0.01" name="Peer" id="planPeer" maxlength="18" required/>
					</td>
				</tr>
				<tr>
					<th><label for="planPrice">对外报价</label><span class="mustWrite">*</span></th>
					<td>
						<input type="number" step="0.01" name="Price" id="planPrice" maxlength="18" required/>
					</td>
					<th><label for="planNum">数量</label><span class="mustWrite">*</span></th>
					<td>
					<input type="number"  name="Number" id="planNum" maxlength="18" required/>
					</td>
				</tr>
				<tr>
					<th><label for="planMemo">备注</label></th>
					<td colspan="3">
						<textarea name="Memo" id="planMemo" maxlength="256" ></textarea>
					</td>
				</tr>	
					
				</table>
				<center>
				<input type="submit" class="btn" value="保存" />
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
				</center> 
				
				</form>			
							
				</div>
				
			</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		
		<!-- Main Slider -->
		<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>

</html>